package com.oa.modules.approvalsec1.service.impl;

import com.oa.common.utils.AppUtils;
import com.oa.common.utils.Constant;
import com.oa.modules.approvalsec1.dao.InstitutionPersonDao;
import com.oa.modules.approvalsec1.entity.InstitutionPersonEntity;
import com.oa.modules.approvalsec1.service.InstitutionPersonService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.common.utils.PageUtils;
import com.oa.common.utils.Query;


/**
 * 机构人员信息表
 *
 * @author Hankaicheng
 * @email 785297226@qq.com
 * @date 2022-05-07 12:56:11
 */
@Service
public class InstitutionPersonServiceImpl extends ServiceImpl<InstitutionPersonDao, InstitutionPersonEntity> implements InstitutionPersonService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        params.put("status", Constant.YES_OR_NO.YES.getValue());
        IPage page= AppUtils.getPage(new Query<InstitutionPersonEntity>(), params);
        return AppUtils.setPage(page, baseMapper.findPage(params), baseMapper.findRecords(page, params));
    }

}
